<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html><head id="Head">

<title>
	OpneGL学习笔记 - 零基础搭建OpenGL开发环境 - 随感而发 - C++博客
</title><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><meta id="metaKeywords" name="keywords" content="OpneGL学习笔记 - 零基础搭建OpenGL开发环境"><link id="MainCss" type="text/css" rel="stylesheet" href="80305_files/style.css"><link id="MainCss2" type="text/css" rel="stylesheet" href="80305_files/green.css"><link id="RSSLink" title="RSS" type="application/rss+xml" rel="alternate" href="http://www.cppblog.com/shongbee2/rss.aspx"></head><body>
    <form name="Form1" method="post" action="80305.html" onsubmit="javascript:return WebForm_OnSubmit();" id="Form1">
<div>
<input name="__EVENTTARGET" id="__EVENTTARGET" value="" type="hidden">
<input name="__EVENTARGUMENT" id="__EVENTARGUMENT" value="" type="hidden">
<input name="__VIEWSTATE" id="__VIEWSTATE" value="" type="hidden">
</div>

<script type="text/javascript">
//<![CDATA[
var theForm = document.forms['Form1'];
if (!theForm) {
    theForm = document.Form1;
}
function __doPostBack(eventTarget, eventArgument) {
    if (!theForm.onsubmit || (theForm.onsubmit() != false)) {
        theForm.__EVENTTARGET.value = eventTarget;
        theForm.__EVENTARGUMENT.value = eventArgument;
        theForm.submit();
    }
}
//]]>
</script>


<script src="80305_files/WebResource.js" type="text/javascript"></script>

<script language="JavaScript">
									function ctlent(evt,id)
											{
												if(evt.ctrlKey && evt.keyCode == 13)
												{	
													try
													{
														TempSave(id);
													}
													catch(ex)
													{
													}
													finally
													{
													    __doPostBack('AjaxHolder$PostComment$btnSubmit','')
													}
												}
		
												}</script>
												<script language="JavaScript">function SetReplyAuhor(author){document.getElementById('AjaxHolder_PostComment_tbComment').value+="@"+author+"\n";document.getElementById('AjaxHolder_PostComment_tbComment').focus();return false}</script>
<script src="80305_files/ScriptResource.js" type="text/javascript"></script>
<script src="80305_files/ScriptResource_003.js" type="text/javascript"></script>
<script src="80305_files/ScriptResource_002.js" type="text/javascript"></script>
<script type="text/javascript">
//<![CDATA[
function WebForm_OnSubmit() {
if (typeof(ValidatorOnSubmit) == "function" && ValidatorOnSubmit() == false) return false;
return true;
}
//]]>
</script>

        
<div id="top">
	
<h1><a id="Header1_HeaderTitle" class="headermaintitle" href="http://www.cppblog.com/shongbee2/">随感而发</a></h1>
<p id="tagline">杂七杂八</p>
</div>
<div id="leftmenu" style="display: inline;">
	
		
<h3>导航</h3>
<ul>
			<li><a id="MyLinks1_HomeLink" href="http://www.cppblog.com/">C++博客</a></li>
			<li><a id="MyLinks1_MyHomeLink" href="http://www.cppblog.com/shongbee2/">首页</a></li>
			<li><a id="MyLinks1_NewPostLink" href="http://www.cppblog.com/shongbee2/admin/EditPosts.aspx?opt=1">新随笔</a></li>
			<li><a id="MyLinks1_ContactLink" accesskey="9" href="http://www.cppblog.com/shongbee2/contact.aspx?id=1">联系</a></li>
			<li><a id="MyLinks1_Syndication" href="http://www.cppblog.com/shongbee2/Rss.aspx">聚合</a><a id="MyLinks1_XMLLink" href="http://www.cppblog.com/shongbee2/Rss.aspx"><img src="80305_files/xml.gif" style="border-width: 0px;"></a>
			</li><li><a id="MyLinks1_Admin" href="http://www.cppblog.com/shongbee2/admin/EditPosts.aspx">管理</a></li>
</ul>
		<table id="Calendar1_entryCal" class="Cal" title="Calendar" style="border-style: solid; border-width: 1px; border-collapse: collapse;" border="0" cellpadding="0" cellspacing="0">
	<tbody><tr><td colspan="7" style="background-color: Silver;"><table class="CalTitle" style="width: 100%; border-collapse: collapse;" border="0" cellspacing="0">
		<tbody><tr><td class="CalNextPrev" style="width: 15%;"><a href="javascript:__doPostBack('Calendar1$entryCal','V3561')" style="color: Black;" title="Go to the previous month">&lt;</a></td><td style="width: 70%;" align="center">2009年11月</td><td class="CalNextPrev" style="width: 15%;" align="right"><a href="javascript:__doPostBack('Calendar1$entryCal','V3622')" style="color: Black;" title="Go to the next month">&gt;</a></td></tr>
	</tbody></table></td></tr><tr><th class="CalDayHeader" abbr="日" scope="col" align="center">日</th><th class="CalDayHeader" abbr="一" scope="col" align="center">一</th><th class="CalDayHeader" abbr="二" scope="col" align="center">二</th><th class="CalDayHeader" abbr="三" scope="col" align="center">三</th><th class="CalDayHeader" abbr="四" scope="col" align="center">四</th><th class="CalDayHeader" abbr="五" scope="col" align="center">五</th><th class="CalDayHeader" abbr="六" scope="col" align="center">六</th></tr><tr><td class="CalOtherMonthDay" style="width: 14%;" align="center">25</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">26</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">27</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">28</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">29</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">30</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">31</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">1</td><td style="width: 14%;" align="center">2</td><td style="width: 14%;" align="center">3</td><td style="width: 14%;" align="center">4</td><td style="width: 14%;" align="center">5</td><td style="width: 14%;" align="center">6</td><td class="CalWeekendDay" style="width: 14%;" align="center">7</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">8</td><td style="width: 14%;" align="center">9</td><td style="width: 14%;" align="center">10</td><td style="width: 14%;" align="center">11</td><td style="width: 14%;" align="center">12</td><td style="width: 14%;" align="center">13</td><td class="CalWeekendDay" style="width: 14%;" align="center">14</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">15</td><td style="width: 14%;" align="center">16</td><td style="width: 14%;" align="center">17</td><td style="width: 14%;" align="center">18</td><td style="width: 14%;" align="center">19</td><td style="width: 14%;" align="center">20</td><td class="CalWeekendDay" style="width: 14%;" align="center">21</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">22</td><td class="CalTodayDay" style="width: 14%;" align="center">23</td><td style="width: 14%;" align="center">24</td><td style="width: 14%;" align="center">25</td><td style="width: 14%;" align="center">26</td><td style="width: 14%;" align="center">27</td><td class="CalWeekendDay" style="width: 14%;" align="center">28</td></tr><tr><td class="CalWeekendDay" style="width: 14%;" align="center">29</td><td style="width: 14%;" align="center">30</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">1</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">2</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">3</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">4</td><td class="CalOtherMonthDay" style="width: 14%;" align="center">5</td></tr>
</tbody></table>

		
		
		<h3>随笔分类<span style="font-size: 11px; font-weight: normal;">(61)</span></h3>
		
				<ul>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl01_Link" href="http://www.cppblog.com/shongbee2/category/10032.html">c/c++(12)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl01_RssLink" title="Subscribe to c/c++(12)" href="http://www.cppblog.com/shongbee2/category/10032.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl02_Link" href="http://www.cppblog.com/shongbee2/category/10154.html">COM相关(3)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl02_RssLink" title="Subscribe to COM相关(3)" href="http://www.cppblog.com/shongbee2/category/10154.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl03_Link" href="http://www.cppblog.com/shongbee2/category/10265.html">OpenGL(12)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl03_RssLink" title="Subscribe to OpenGL(12)" href="http://www.cppblog.com/shongbee2/category/10265.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl04_Link" href="http://www.cppblog.com/shongbee2/category/10033.html">windows相关(8)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl04_RssLink" title="Subscribe to windows相关(8)" href="http://www.cppblog.com/shongbee2/category/10033.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl05_Link" href="http://www.cppblog.com/shongbee2/category/10053.html">其他(4)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl05_RssLink" title="Subscribe to 其他(4)" href="http://www.cppblog.com/shongbee2/category/10053.html/rss">(rss)</a></li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl06_Link" href="http://www.cppblog.com/shongbee2/category/10031.html">数据结构和算法(22)</a> <a id="ArchiveLinks1_Categories_CatList_ctl00_LinkList_ctl06_RssLink" title="Subscribe to 数据结构和算法(22)" href="http://www.cppblog.com/shongbee2/category/10031.html/rss">(rss)</a></li>
			
				</ul>
			
	
		<h3>随笔档案<span style="font-size: 11px; font-weight: normal;">(65)</span></h3>
		
				<ul>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl01_Link" href="http://www.cppblog.com/shongbee2/archive/2009/09.html">2009年9月 (1)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl02_Link" href="http://www.cppblog.com/shongbee2/archive/2009/07.html">2009年7月 (10)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl03_Link" href="http://www.cppblog.com/shongbee2/archive/2009/05.html">2009年5月 (9)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl04_Link" href="http://www.cppblog.com/shongbee2/archive/2009/04.html">2009年4月 (41)</a> </li>
			
				<li><a id="ArchiveLinks1_Categories_CatList_ctl01_LinkList_ctl05_Link" href="http://www.cppblog.com/shongbee2/archive/2009/03.html">2009年3月 (4)</a> </li>
			
				</ul>
			
	

	
</div>
<div id="rightmenu">
	
		
<h3>统计</h3>
	<ul>
		<li>随笔 - 65
		</li><li>文章 - 0
		</li><li>评论 - 59
		</li><li>引用 - 0
	</li>
</ul>
		
<h3>留言簿<span style="font-size: 11px; font-weight: normal;">(2)</span></h3>
<ul>
	<li>
		<a id="MyMessages1_lnkMessages" href="http://www.cppblog.com/shongbee2/Contact.aspx?id=1">给我留言</a>
	</li><li>
		<a id="MyMessages1_lnkPublicMsgView" href="http://www.cppblog.com/shongbee2/default.aspx?opt=msg">查看公开留言</a>
	</li><li>
		<a id="MyMessages1_lnkPrivateMsgView" href="http://www.cppblog.com/shongbee2/admin/MyMessages.aspx">查看私人留言</a>
	</li>
</ul>

        
		

        
<h3>阅读排行榜</h3>
<div class="RecentComment">
	
			<ul style="width: 100%;">
		
			<li>
				<a id="TopViewPosts1_TopList_ctl01_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81058.aspx">1.&nbsp;排序算法总结(7838)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl02_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/28/81349.aspx">2.&nbsp;WCHAR我不再惧怕了(2349)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl03_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/01/78554.aspx">3.&nbsp;c++操作符重载(1601)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl04_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/23/80885.aspx">4.&nbsp;快速排序学习1(1577)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl05_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/03/81771.aspx">5.&nbsp;OpenGL学习笔记【10】——移动光源，光照小结(1512)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl06_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/05/81994.aspx">6.&nbsp;OpenGL学习笔记【11】——融合学习(1282)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl07_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/03/31/78441.aspx">7.&nbsp;插入排序(1129)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl08_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81038.aspx">8.&nbsp;冒泡排序(1113)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl09_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81046.aspx">9.&nbsp;希尔排序(914)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl10_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/05/79011.aspx">10.&nbsp;STL中set的简单学习(893)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl11_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/03/31/78456.aspx">11.&nbsp;合并排序(780)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl12_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/24/80992.aspx">12.&nbsp;基数排序(714)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl13_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81040.aspx">13.&nbsp;选择排序(571)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl14_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.aspx">14.&nbsp;OpneGL学习笔记 - 零基础搭建OpenGL开发环境(515)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl15_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/22/80765.aspx">15.&nbsp;用堆实现优先队列(480)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl16_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81024.aspx">16.&nbsp;OpenGL学习笔记【4】——给立方体纹理贴图(texture)(475)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl17_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/24/80991.aspx">17.&nbsp;计数排序，传说时间复杂度为0(n)的排序(428)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl18_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/23/80887.aspx">18.&nbsp;快速排序学习2（随机化版本）(426)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl19_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/30/81594.aspx">19.&nbsp;链表学习--双向链表实现(426)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl20_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/21/80639.aspx">20.&nbsp;堆排序(407)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl21_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/28/81279.aspx">21.&nbsp;OpenGL学习笔记【6】——初学光照(389)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl22_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/08/79248.aspx">22.&nbsp;【转】.reg文件格式(319)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl23_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/23/80891.aspx">23.&nbsp;快速排序学习4（最初版加随机版）(305)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl24_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/23/80888.aspx">24.&nbsp;快速排序学习3（最初版）(304)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl25_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/01/81645.aspx">25.&nbsp;OpenGL学习笔记【7】——材质学习(303)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl26_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/24/80898.aspx">26.&nbsp;OpenGL学习笔记【3】——OpenGL学习起始框架(294)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl27_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/01/81656.aspx">27.&nbsp;OpenGL学习笔记【8】——颜色材质(286)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl28_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/07/08/89571.aspx">28.&nbsp;VS2008设置内存断点(275)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl29_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/29/81486.aspx">29.&nbsp;队列学习--数组实现(259)</a>
			</li>
		
			<li>
				<a id="TopViewPosts1_TopList_ctl30_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80206.aspx">30.&nbsp;OpenGL学习笔记[1](258)</a>
			</li>
		
			</ul>
		
</div>

		
<h3>评论排行榜</h3>
<div class="RecentComment">
	
			<ul style="width: 100%;">
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl01_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/28/81349.aspx">1.&nbsp;WCHAR我不再惧怕了(14)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl02_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81058.aspx">2.&nbsp;排序算法总结(6)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl03_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/23/80885.aspx">3.&nbsp;快速排序学习1(5)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl04_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/01/78554.aspx">4.&nbsp;c++操作符重载(5)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl05_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.aspx">5.&nbsp;OpneGL学习笔记 - 零基础搭建OpenGL开发环境(5)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl06_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/02/78635.aspx">6.&nbsp;【转】DLL的简单介绍(4)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl07_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/03/81771.aspx">7.&nbsp;OpenGL学习笔记【10】——移动光源，光照小结(3)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl08_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/04/81861.aspx">8.&nbsp;用数组模拟指针和对象(2)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl09_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/07/28/91524.aspx">9.&nbsp;诡异的强制类型转换操作符(2)</a>
			</li>
		
			<li>
				<a id="TopFeedbackPosts1_TopList_ctl10_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/28/81279.aspx">10.&nbsp;OpenGL学习笔记【6】——初学光照(2)</a>
			</li>
		
			</ul>
		
</div>

	
</div>
<div id="main">
	
					
	<div class="post">
		<h2>
			<a id="viewpost1_TitleUrl" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html">OpneGL学习笔记 - 零基础搭建OpenGL开发环境</a>
		</h2>
		<div class="Section0" style="">
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">零基础搭建OpenGL开发环境</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';">OPENGL<font face="宋体">的介绍就不用了，他的好处书上也很多。开始之前记录一个学习openGL的网站：</font></span><span><a href="http://nehe.gamedev.net/"><span class="15" style="font-size: 10pt; color: rgb(0, 0, 255); font-family: '宋体'; text-decoration: underline;">http://nehe.gamedev.net/</span></a></span><span style="font-size: 10.5pt; font-family: '宋体';">&nbsp;NEHE<font face="宋体">的OpenGL学习网站。其他相关openGL的知识的书也希望我去好好看看。</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';">1.</span><span style="font-size: 10.5pt; font-family: '宋体';">openGL<font face="宋体">的库。使用OpenGL开发当然要使用到他的库咯。他的头文件包括：</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';">gl.h&nbsp;glu.h&nbsp;glaux.h&nbsp;<font face="宋体">等核心的库，还有一个我们用的很多很多的glut.h头文件。</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">为了使用它，我们还有相应的.lib文件和.dll文件。</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';">2.</span><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">把这些使用到的东东放到他该有的位置。</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">头文件的位置：放到VS安装目录下的VC-&gt;include目录下，可以自己建立一个gl文件夹</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">我的位置是：C:\Program&nbsp;Files\Microsoft&nbsp;Visual&nbsp;Studio&nbsp;8\VC\include\gl</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><img src="80305_files/hFilePath.png" height="213" width="343"><span style="font-size: 10.5pt; font-family: 'Times New Roman';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">因为我是用VS2005安装在C盘的。这个要看具体目录而定。</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';">Lib<font face="宋体">文件的位置，同理，有include就有lib，找到对应vc-&gt;lib目录，你是不是发现了很多.lib文件，对，这里就是他的位置了。</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">我的位置是：C:\Program&nbsp;Files\Microsoft&nbsp;Visual&nbsp;Studio&nbsp;8\VC\lib</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><img src="80305_files/libFilePath.png" height="246" width="532"><span style="font-size: 10.5pt; font-family: 'Times New Roman';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';">.dll<font face="宋体">文件</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';">Dll<font face="宋体">文件就放在windos下的sysytem32目录下：</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt; text-align: justify;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">我的是：C:\WINDOWS\system32</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><img src="80305_files/dllFilePath.png" height="255" width="428"><span style="font-size: 10.5pt; font-family: 'Times New Roman';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">基本就是这些东西，我们的Opengl开发环境搭建完毕。理论上来说是可以编写OpenGL程序了。</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">由于我英语很烂，居然没有在官网中找到最新的Opengl库文件，只好用以前的库了，整理了一下。如果你也没有找到，就凑合用他吧：</font></span><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';"><font face="宋体">下载地址：</font></span><span><a href="http://download.csdn.net/source/1221084"><span class="15" style="font-size: 10pt; color: rgb(0, 0, 255); font-family: '宋体'; text-decoration: underline;">http://download.csdn.net/source/1221084</span></a>&nbsp;</span></p>
<p class="p0" style="margin-top: 0pt; margin-bottom: 0pt;"><span style="font-size: 10.5pt; font-family: '宋体';"><o:p></o:p></span></p>
</div>
<!--endfragment-->

		<p class="postfoot">
			posted on 2009-04-17 23:13 <a href="http://www.cppblog.com/shongbee2/">shongbee2</a> 阅读(515) <a href="#Post">评论(5)</a> &nbsp;<a href="http://www.cppblog.com/shongbee2/admin/EditPosts.aspx?postid=80305">编辑</a>&nbsp;<a href="http://www.cppblog.com/shongbee2/AddToFavorite.aspx?id=80305">收藏</a> <a href="http://www.cppblog.com/shongbee2/services/trackbacks/80305.aspx">引用</a>  所属分类: <a href="http://www.cppblog.com/shongbee2/category/10265.html">OpenGL</a> 
		</p>
	</div>
	<img src="80305_files/80305.jpeg" height="1" width="1">
	
<!--
<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
<rdf:Description
rdf:about="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html"
dc:identifier="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html"
dc:title="OpneGL学习笔记 - 零基础搭建OpenGL开发环境"
trackback:ping="http://www.cppblog.com/shongbee2/services/trackbacks/80305.aspx" />
</rdf:RDF>
-->

	<script type="text/javascript">
//<![CDATA[
Sys.WebForms.PageRequestManager._initialize('AjaxHolder$scriptmanager1', document.getElementById('Form1'));
Sys.WebForms.PageRequestManager.getInstance()._updateControls(['tAjaxHolder$UpdatePanel1'], [], [], 90);
//]]>
</script>

<div id="AjaxHolder_UpdatePanel1">
	    
    <a name="pagedcomment"></a>
<a name="评论">
</a><div id="comments">
<h3><a name="评论">评论</a></h3>
<a name="评论">	
	
			</a><h4>
<a name="评论">				</a><a title="permalink: re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#81154">#</a>&nbsp;<a name="81154"></a>re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境
					<span>
						2009-04-26 20:48
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl00_NameLink" href="http://www.cppblog.com/pencil/" target="_blank">Pencil.C++</a>
			</h4>
			<p>
				图都是连接到你本地了。麻烦修改下。关注。呵呵&nbsp;&nbsp;<a onclick='return SetReplyAuhor("Pencil.C++")' href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#post">回复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cppblog.com/comment?author=Pencil.C%2b%2b" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl00_DeleteLink" href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl00$DeleteLink','')"></a>&nbsp;&nbsp;<a id="AjaxHolder_Comments_CommentList_ctl00_EditLink"></a>
			</p>
		
			<h4>
				<a title="permalink: re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#81162">#</a>&nbsp;<a name="81162"></a>re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境
					<span>
						2009-04-26 21:49
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl01_NameLink" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a>
			</h4>
			<p>
				@Pencil.C++
<br>谢谢您，我还不知道为有这样的情况，呵呵，我是直接复制上来。现在改了，不知道好了没有！呵呵&nbsp;&nbsp;<a onclick='return SetReplyAuhor("shongbee2")' href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#post">回复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cppblog.com/comment?author=shongbee2" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl01_DeleteLink" href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl01$DeleteLink','')"></a>&nbsp;&nbsp;<a id="AjaxHolder_Comments_CommentList_ctl01_EditLink"></a>
			</p>
		
			<h4>
				<a title="permalink: re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#81181">#</a>&nbsp;<a name="81181"></a>re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境
					<span>
						2009-04-27 08:24
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl02_NameLink" href="http://www.cppblog.com/pencil/" target="_blank">Pencil.C++</a>
			</h4>
			<p>
				@shongbee2
<br>非常感谢您的分享。谢谢了。&nbsp;&nbsp;<a onclick='return SetReplyAuhor("Pencil.C++")' href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#post">回复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cppblog.com/comment?author=Pencil.C%2b%2b" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl02_DeleteLink" href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl02$DeleteLink','')"></a>&nbsp;&nbsp;<a id="AjaxHolder_Comments_CommentList_ctl02_EditLink"></a>
			</p>
		
			<h4>
				<a title="permalink: re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#81359">#</a>&nbsp;<a name="81359"></a>re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境
					<span>
						2009-04-28 21:31
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl03_NameLink" href="http://www.cppblog.com/shongbee2/" target="_blank">shongbee2</a>
			</h4>
			<p>
				@Pencil.C++
<br>呵呵，希望大家都快乐。加油。&nbsp;&nbsp;<a onclick='return SetReplyAuhor("shongbee2")' href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#post">回复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cppblog.com/comment?author=shongbee2" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl03_DeleteLink" href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl03$DeleteLink','')"></a>&nbsp;&nbsp;<a id="AjaxHolder_Comments_CommentList_ctl03_EditLink"></a>
			</p>
		
			<h4>
				<a title="permalink: re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#82591">#</a>&nbsp;<a name="82591"></a>re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境<a name="Post"></a>
					<span>
						2009-05-11 17:10
					</span>
				<a id="AjaxHolder_Comments_CommentList_ctl04_NameLink" target="_blank">beyond_OpenGL</a>
			</h4>
			<p>
				感谢博主了，非常好的学习笔记，你qq号多少啊，我目前也在疯狂学习OpenGL，以后想多请教你！！&nbsp;&nbsp;<a onclick='return SetReplyAuhor("beyond_OpenGL")' href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#post">回复</a>&nbsp;&nbsp;<a title="查看该作者发表过的评论" href="http://www.cppblog.com/comment?author=beyond_OpenGL" target="_blank">更多评论</a>
				<a id="AjaxHolder_Comments_CommentList_ctl04_DeleteLink" href="javascript:__doPostBack('AjaxHolder$Comments$CommentList$ctl04$DeleteLink','')"></a>&nbsp;&nbsp;<a id="AjaxHolder_Comments_CommentList_ctl04_EditLink"></a>
			</p>
		
</div><div id="AjaxHolder_Comments_divRefreshComments" style="text-align: right; margin-right: 10px; margin-bottom: 5px; font-size: 12px;"><a id="AjaxHolder_Comments_refreshList" href="javascript:__doPostBack('AjaxHolder$Comments$refreshList','')">刷新评论列表</a></div>
<style>
td { font-size: 12px }
.commentTextBox 
{ 
    font-family : Verdana; 
    font-size: 13px;
 }
</style>
<!--Beging Temp Save-->
<style>.userData { BEHAVIOR: url(#default#userdata) }
	</style>
<div class="userData" id="CommentsPersistDiv"></div>
<script type="text/javascript">
function pageLoad()
{
    Sys.WebForms.PageRequestManager.getInstance().add_initializeRequest(handleInitializeRequest);
    //Sys.WebForms.PageRequestManager.getInstance().add_endRequest(handleEndRequest);
}

function handleInitializeRequest(sender, args)
{
    var prm = Sys.WebForms.PageRequestManager.getInstance();
    var eid = args.get_postBackElement().id;
    if (eid.indexOf("DeleteLink")>0) 
    {
       args.get_postBackElement().innerHTML = "<font color='red'>正在删除...</font>";         
    }    
    if (eid.indexOf("btnSubmit")>0) 
    {
       document.getElementById("AjaxHolder_PostComment_ltSubmitMsg").innerHTML="正在提交...";
       document.getElementById("AjaxHolder_PostComment_btnSubmit").disabled = true;
       
    }    
   
}	

function TempSave(ElementID)
{
	try
	{
	CommentsPersistDiv.setAttribute("CommentContent",document.getElementById(ElementID).value);
	CommentsPersistDiv.save("CommentXMLStore");
	}
	catch(ex)
	{
	}
	
}
function Restore(ElementID)
{
	CommentsPersistDiv.load("CommentXMLStore");
	document.getElementById(ElementID).value=CommentsPersistDiv.getAttribute("CommentContent");
}	
			
			
</script>
<!--Ene TempSave-->
<div class="commentform">
<script type="text/javascript" src="80305_files/google_service.js">
</script>
<script type="text/javascript">
try{
  GS_googleAddAdSenseService("ca-pub-4210569241504288");
  GS_googleEnableAllServices();
  } catch (e) { }
</script><script src="80305_files/google_ads.js"></script>
<script type="text/javascript">
try{
  GA_googleAddSlot("ca-pub-4210569241504288", "cppblog_blogpost_bottom");
  GA_googleAddSlot("ca-pub-4210569241504288", "cppblog_commentbox_up");
  } catch (e) { }
</script>
<script type="text/javascript">
try{
  GA_googleFetchAds();
  } catch (e) { }
</script>
<span id="AjaxHolder_PostComment_ltSubmitMsg" style="color: Red;"></span>
<br>
<a name="Feedback"></a>
	<table border="0" cellpadding="1" cellspacing="1">
		<tbody><tr>
			<td colspan="3" height="5"> </td>
		</tr>
		<tr>
			<td width="75"></td>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td></td>
			<td colspan="2">
			<a href="http://news.cnblogs.com/" target="_blank">IT新闻</a>&nbsp;&nbsp;<a href="http://job.cnblogs.com/" target="_blank">程序员招聘</a>
			</td>
		</tr>
		<tr>
			<td width="55">标题</td>
			<td><input name="AjaxHolder$PostComment$tbTitle" value="re: OpneGL学习笔记 - 零基础搭建OpenGL开发环境" id="AjaxHolder_PostComment_tbTitle" class="commenttb" style="width: 320px;" type="text"></td>
			<td><span id="AjaxHolder_PostComment_RequiredFieldValidator1" style="color: Red; visibility: hidden;">请输入标题</span></td>
		</tr>
		<tr>
			<td>姓名</td>
			<td><input name="AjaxHolder$PostComment$tbName" id="AjaxHolder_PostComment_tbName" class="commenttb" style="width: 320px;" type="text"></td>
			<td><span id="AjaxHolder_PostComment_RequiredFieldValidator2" style="color: Red; visibility: hidden;">请输入你的姓名</span></td>
		</tr>
		<tr>
			<td>主页</td>
			<td><input name="AjaxHolder$PostComment$tbUrl" id="AjaxHolder_PostComment_tbUrl" class="commenttb" style="width: 320px;" type="text"></td>
			<td><font face="宋体"></font></td>
		</tr>
		<tr>
			<td colspan="3" align="left">
				<table id="AjaxHolder_PostComment_tbCaptchaImage" class="CommentForm" border="0" cellpadding="0" cellspacing="0">
		<tbody><tr>
			<td colspan="3">
							<span id="AjaxHolder_PostComment_Requiredfieldvalidator4" style="color: Red; display: none;">请输入验证码</span>
							<span id="AjaxHolder_PostComment_lblImage" style="color: Red; font-weight: bold;"></span>
						</td>
		</tr>
		<tr>
			<td width="78">验证码</td>
			<td><input name="AjaxHolder$PostComment$CodeNumberTextBox" id="AjaxHolder_PostComment_CodeNumberTextBox" type="text">*</td>
			<td align="left">
							<img src="80305_files/JpegImage.jpeg" id="AjaxHolder_PostComment_Img1">
						</td>
		</tr>
	</tbody></table>
	
			</td>
		</tr>
		<tr>
			<td colspan="3">内容(提交失败后,可以通过“恢复上次提交”恢复刚刚提交的内容)
				<span id="AjaxHolder_PostComment_RequiredFieldValidator3" style="color: Red; visibility: hidden;">请输入评论内容</span><br>
				<textarea name="AjaxHolder$PostComment$tbComment" rows="10" cols="50" id="AjaxHolder_PostComment_tbComment" class="commentTextBox" onkeydown="ctlent(event,'AjaxHolder_PostComment_tbComment')" style="width: 480px; height: 220px;"></textarea></td>
		</tr>
		<tr>
			<td colspan="3">
		<span id="AjaxHolder_PostComment_Message" style="color: Red;"></span>
		</td>
		</tr><tr>
			<td colspan="3"><input id="AjaxHolder_PostComment_chkRemember" name="AjaxHolder$PostComment$chkRemember" checked="checked" tabindex="-1" type="checkbox"><label for="AjaxHolder_PostComment_chkRemember">Remember Me?</label></td>
		</tr>
		<tr>
			<td height="23"><input name="AjaxHolder$PostComment$btnSubmit" value="提交" onclick="TempSave('AjaxHolder_PostComment_tbComment');WebForm_DoPostBackWithOptions(new WebForm_PostBackOptions(&quot;AjaxHolder$PostComment$btnSubmit&quot;, &quot;&quot;, true, &quot;&quot;, &quot;&quot;, false, false))" id="AjaxHolder_PostComment_btnSubmit" type="submit">
				</td>
			<td colspan="2" height="23">&nbsp;
				<a id="AjaxHolder_PostComment_lnkLogin" href="http://www.cppblog.com/login.aspx?ReturnURL=http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html&amp;SourceURL=/shongbee2/archive/2009/04/17/80305.html">登录</a>&nbsp;&nbsp;<a id="AjaxHolder_PostComment_linkLoginComment" onclick="if(document.getElementById('AjaxHolder_PostComment_tbComment').value != '') return confirm('未提交的评论内容将会丢失, 你真的要进入高级评论吗?');" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html?login=1#Post">使用高级评论</a>&nbsp;&nbsp;<a href="http://www.cppblog.com/RequireRegister.aspx">新用户注册</a>&nbsp;&nbsp;<a href="#Top">返回页首</a>&nbsp;&nbsp;<a id="AjaxHolder_PostComment_lbRestore" onclick="Restore('AjaxHolder_PostComment_tbComment'); return false;" href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html#Post">恢复上次提交</a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				</td>
		</tr>
		<tr>
			<td colspan="3">[使用Ctrl+Enter键可以直接提交]</td>
		</tr>
		<tr>
			<td colspan="3"><a href="http://kb.cnblogs.com/zt/windows7/" target="_blank">Windows 7专题</a></td>
		</tr>
		<tr>			
		<td colspan="3">
		<div id="itnews_block" style="line-height: 180%;" class="other_info_list">IT新闻：<br>· <a href="http://news.cnblogs.com/n/51836/" target="_blank">IBM携手新奥涉足中国新能源产业</a><br>· <a href="http://news.cnblogs.com/n/51834/" target="_blank">当软件开发遭遇经济学考量</a><br>· <a href="http://news.cnblogs.com/n/51833/" target="_blank">正望发09搜索市场报告：百度领先扩大谷歌微跌</a><br>· <a href="http://news.cnblogs.com/n/51832/" target="_blank">第三方广告掘金Twitter 网络名人月入3000美元</a><br>· <a href="http://news.cnblogs.com/n/51831/" target="_blank">因获Intel赔款 AMD为高管加薪</a><br></div><div id="job_block" style="line-height: 180%;" class="other_info_list">招聘信息：<br>· <a href="http://job.cnblogs.com/offer/2481/" target="_blank">彩信工程师(北京英泰利智科技发展有限公司)</a><br>· <a href="http://job.cnblogs.com/offer/3032/" target="_blank">.NET 开发工程师(北京神舟航天软件技术有限公司)</a><br>· <a href="http://job.cnblogs.com/offer/2450/" target="_blank">Delphi高级程序员(福建网龙计算机网络信息技术有限公司)</a><br>· <a href="http://job.cnblogs.com/offer/2960/" target="_blank">J2EE高级开发工程师(北京富基融通科技有限公司)</a><br>· <a href="http://job.cnblogs.com/offer/2518/" target="_blank">网站界面UI首席设计师(三星数据系统（中国）有限公司)</a><br></div>
		</td>
		</tr>
		<tr>
		<td colspan="3">
		<script type="text/javascript">
		try{
		  GA_googleFillSlot("cppblog_blogpost_bottom");
		  } catch (e) { }
		</script><script src="80305_files/ads"></script><div id="google_ads_div_cppblog_blogpost_bottom">
<iframe style="border: 0pt none ;" marginheight="0" marginwidth="0" name="google_ads_iframe_cppblog_blogpost_bottom" id="google_ads_iframe_cppblog_blogpost_bottom" frameborder="0" height="250" scrolling="no" width="300"></iframe></div>
<script>GA_googleCreateDomIframe('google_ads_div_cppblog_blogpost_bottom' ,'cppblog_blogpost_bottom');</script>
		</td>
		</tr>
		<tr>
			<td colspan="3" height="5">
<div id="divRelativePosts">
相关文章:
	
			<ul style="margin-top: 0px;">
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl01_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/08/82287.html">OpenGL学习笔记【12】——纪念一下</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl02_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/05/81994.html">OpenGL学习笔记【11】——融合学习</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl03_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/03/81771.html">OpenGL学习笔记【10】——移动光源，光照小结</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl04_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/02/81730.html">OpneGL学习笔记【9】——纹理学习</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl05_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/01/81656.html">OpenGL学习笔记【8】——颜色材质</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl06_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/05/01/81645.html">OpenGL学习笔记【7】——材质学习</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl07_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/28/81279.html">OpenGL学习笔记【6】——初学光照</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl08_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/26/81159.html">OpenGL学习笔记【5】——自我安慰和鼓励</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl09_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/25/81024.html">OpenGL学习笔记【4】——给立方体纹理贴图(texture)</a>
			</li>
		
			<li style="list-style-type: none; list-style-image: none; list-style-position: outside;">
				<a id="AjaxHolder_PostComment_ctl07_RelativePostsList_ctl10_Hyperlink1" href="http://www.cppblog.com/shongbee2/archive/2009/04/24/80898.html">OpenGL学习笔记【3】——OpenGL学习起始框架</a>
			</li>
		
			</ul>
		
</div>
</td>
		</tr>
		<tr>
			<td colspan="3"></td>
		</tr>
		<tr>
			<td colspan="3" height="1">网站导航:<div id="blogsite">
			<a href="http://www.cnblogs.com/">博客园</a>&nbsp;&nbsp;
			<a href="http://news.cnblogs.com/">IT新闻</a>&nbsp;&nbsp;
			<a href="http://home.cnblogs.com/">博客园个人主页</a>&nbsp;&nbsp;
			<a href="http://www.blogjava.net/">BlogJava</a>&nbsp;&nbsp;
			<a href="http://www.cnweblog.com/">博客生活</a>&nbsp;&nbsp;
			<a href="http://www.cnitblog.com/">IT博客网</a>&nbsp;&nbsp;
			<a href="http://www.phpweblog.net/">PHP博客</a>&nbsp;&nbsp;
			<a href="http://space.cnblogs.com/">博客园社区</a>&nbsp;&nbsp;
			<a href="http://www.cppblog.com/shongbee2/archive/2009/04/17/80305.html?opt=admin">管理</a>
			</div></td>
		</tr>
		<tr>
			<td colspan="3">
				
<br>
在知识库中查看：<br><a href="http://kb.cnblogs.com/c/80305/">OpneGL学习笔记 - 零基础搭建OpenGL开发环境</a>
<br>
<div id="AjaxHolder_PostComment_ctl08_div_ad_ccw"> 
<iframe marginheight="0" marginwidth="0" src="80305_files/ad.htm" style="border: 0px solid rgb(102, 102, 102);" allowtransparency="true" frameborder="0" height="0" scrolling="no" width="468"></iframe>
<br>
</div>

</td>
		</tr>
	</tbody></table>	
</div>
<div id="AjaxHolder_PostComment_ValidationSummary1" style="color: Red; display: none;">

	</div>

</div>

				
</div>

<p id="footer">
	Powered by: 
	<br>
	
	<a id="Footer1_Hyperlink3" name="Hyperlink1" href="http://www.cppblog.com/" style="font-family: Verdana; font-size: 12px;">C++博客</a>
	<br>
	Copyright © shongbee2
</p>
<script src="80305_files/ifr"></script><style>table.gadget{background-position:0%;background:transparent none;border-collapse:collapse;border:0;clear:none;float:none;font-family:arial,sans-serif;font-style:normal;font-variant:normal;height:auto;letter-spacing:normal;line-height:normal;margin:0;padding:0;text-indent:0;text-transform:none;top:auto;vertical-align:middle;white-space:normal;width:auto;word-spacing:normal;}table.gadget span.title a:hover,table.gadget span.title a:visited,table.gadget span.title a:active,table.gadget span.title{font-size:12px;color:#0000cc}table.gadget span.powered a:hover,table.gadget span.powered a:visited,table.gadget span.powered a:active,table.gadget span.powered{font-size:10px;color:#0000cc}</style><script language="javaScript" type="text/javascript" src="80305_files/rpc.js"></script><table class="gadget" cellpadding="0" cellspacing="0" width="320"><tbody><tr><td colspan="2" style="vertical-align: middle; text-align: center; width: 100%; height: 28px;"><span class="title"><a href="http://www.google.com/cse/home?cx=018429761129532741080%3Ahmhv6xg7ozu" target="_top">test</a></span></td></tr><tr><td colspan="2"></td></tr><tr><td colspan="2"><div style="border: 1px solid rgb(153, 187, 102); padding: 0px; background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><div style="border: 2px solid rgb(170, 204, 102); padding: 0px; background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><div style="border: 2px solid rgb(187, 221, 102); padding: 0px; background: white none repeat scroll 0% 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial;"><iframe id="1263075947" src="80305_files/ifr.htm" style="display: block; height: 65px;" frameborder="0" height="75" scrolling="no" width="320"></iframe><script type="text/javascript">function adjustHeight(sizeInPx){document.getElementById('1263075947').style.height=sizeInPx+'px';}gadgets.rpc.registerDefault(function(){});gadgets.rpc.register('resize_iframe',adjustHeight);gadgets.rpc.setAuthToken('1263075947','1263075947');</script></div></div></div></td></tr><tr><td style="text-align: left; vertical-align: middle; height: 28px;"><a href="http://fusion.google.com/ig/add?synd=open&amp;source=ggyp&amp;moduleurl=http://www.google.com/coop/api/018429761129532741080/cse/hmhv6xg7ozu/gadget" target="_top"><img style="border: 0pt none ;" src="80305_files/plus_google.gif"></a></td><td style="text-align: right; vertical-align: middle; height: 28px;"><span class="powered"><a href="http://www.google.com/webmasters/gadgets.html" target="_top">Gadgets</a> powered by Google</span></td></tr></tbody></table>    
    
<script type="text/javascript">
//<![CDATA[
var Page_ValidationSummaries =  new Array(document.getElementById("AjaxHolder_PostComment_ValidationSummary1"));
var Page_Validators =  new Array(document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator1"), document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator2"), document.getElementById("AjaxHolder_PostComment_Requiredfieldvalidator4"), document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator3"));
//]]>
</script>

<script type="text/javascript">
//<![CDATA[
var AjaxHolder_PostComment_RequiredFieldValidator1 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator1"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator1");
AjaxHolder_PostComment_RequiredFieldValidator1.controltovalidate = "AjaxHolder_PostComment_tbTitle";
AjaxHolder_PostComment_RequiredFieldValidator1.errormessage = "请输入标题";
AjaxHolder_PostComment_RequiredFieldValidator1.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator1.initialvalue = "";
var AjaxHolder_PostComment_RequiredFieldValidator2 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator2"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator2");
AjaxHolder_PostComment_RequiredFieldValidator2.controltovalidate = "AjaxHolder_PostComment_tbName";
AjaxHolder_PostComment_RequiredFieldValidator2.errormessage = "请输入你的姓名";
AjaxHolder_PostComment_RequiredFieldValidator2.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator2.initialvalue = "";
var AjaxHolder_PostComment_Requiredfieldvalidator4 = document.all ? document.all["AjaxHolder_PostComment_Requiredfieldvalidator4"] : document.getElementById("AjaxHolder_PostComment_Requiredfieldvalidator4");
AjaxHolder_PostComment_Requiredfieldvalidator4.controltovalidate = "AjaxHolder_PostComment_CodeNumberTextBox";
AjaxHolder_PostComment_Requiredfieldvalidator4.errormessage = "请输入验证码";
AjaxHolder_PostComment_Requiredfieldvalidator4.display = "Dynamic";
AjaxHolder_PostComment_Requiredfieldvalidator4.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_Requiredfieldvalidator4.initialvalue = "";
var AjaxHolder_PostComment_RequiredFieldValidator3 = document.all ? document.all["AjaxHolder_PostComment_RequiredFieldValidator3"] : document.getElementById("AjaxHolder_PostComment_RequiredFieldValidator3");
AjaxHolder_PostComment_RequiredFieldValidator3.controltovalidate = "AjaxHolder_PostComment_tbComment";
AjaxHolder_PostComment_RequiredFieldValidator3.errormessage = "请输入评论内容";
AjaxHolder_PostComment_RequiredFieldValidator3.evaluationfunction = "RequiredFieldValidatorEvaluateIsValid";
AjaxHolder_PostComment_RequiredFieldValidator3.initialvalue = "";
var AjaxHolder_PostComment_ValidationSummary1 = document.all ? document.all["AjaxHolder_PostComment_ValidationSummary1"] : document.getElementById("AjaxHolder_PostComment_ValidationSummary1");
AjaxHolder_PostComment_ValidationSummary1.showmessagebox = "True";
AjaxHolder_PostComment_ValidationSummary1.showsummary = "False";
//]]>
</script>


<script type="text/javascript">
//<![CDATA[

var Page_ValidationActive = false;
if (typeof(ValidatorOnLoad) == "function") {
    ValidatorOnLoad();
}

function ValidatorOnSubmit() {
    if (Page_ValidationActive) {
        return ValidatorCommonOnSubmit();
    }
    else {
        return true;
    }
}
        
document.getElementById('AjaxHolder_PostComment_ValidationSummary1').dispose = function() {
    Array.remove(Page_ValidationSummaries, document.getElementById('AjaxHolder_PostComment_ValidationSummary1'));
}
Sys.Application.initialize();

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator1').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator1'));
}

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator2').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator2'));
}

document.getElementById('AjaxHolder_PostComment_Requiredfieldvalidator4').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_Requiredfieldvalidator4'));
}

document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator3').dispose = function() {
    Array.remove(Page_Validators, document.getElementById('AjaxHolder_PostComment_RequiredFieldValidator3'));
}
//]]>
</script>
</form>
    <script type="text/javascript">
        if (document.getElementById('cnblogsgooglead') != null) {
            document.getElementById('cnblogsgooglead').innerHTML = document.getElementById('cnblogsgoogleadcode').innerHTML;
            document.getElementById('cnblogsgoogleadcode').innerHTML = '';
        }

        if (document.getElementById('leftcontent') != null) {
            if (document.getElementById('leftcontent').style.display == 'none') {
                document.getElementById('leftcontent').style.display = 'inline';
            }
        }
        if (document.getElementById('Blogleftcontent') != null) {
            if (document.getElementById('cnblogsleftcontent').style.display == 'none') {
                document.getElementById('cnblogsleftcontent').style.display = 'inline';
            }
        }

        if (document.getElementById('cnblogsleftcontent') != null) {
            if (document.getElementById('cnblogsleftcontent').style.display == 'none') {
                document.getElementById('cnblogsleftcontent').style.display = 'inline';
            }
        }

        if (document.getElementById('rightmenu') != null) {
            if (document.getElementById('rightmenu').style.display == 'none') {
                document.getElementById('rightmenu').style.display = 'inline';
            }
        }
        if (document.getElementById('leftmenu') != null) {
            if (document.getElementById('leftmenu').style.display == 'none') {
                document.getElementById('leftmenu').style.display = 'inline';
            }
            if (document.getElementById('lefttemp') != null) {
                document.getElementById('leftmenu').innerHTML = document.getElementById('lefttemp').innerHTML;
                document.getElementById('lefttemp').innerHTML = '';
            }
        }

        if (document.getElementById('left') != null) {
            if (document.getElementById('left').style.display == 'none') {
                document.getElementById('left').style.display = 'inline';
            }
        }

        if (document.getElementById('cnblogsleftmenu') != null) {
            if (document.getElementById('cnblogsleftmenu').style.display == 'none') {
                document.getElementById('cnblogsleftmenu').style.display = 'inline';
            }
        }

        if (document.getElementById('menu') != null) {
            if (document.getElementById('menu').style.display == 'none') {
                document.getElementById('menu').style.display = 'inline';
            }
        }

        if (document.getElementById('cnblogsmenu') != null) {
            if (document.getElementById('cnblogsmenu').style.display == 'none') {
                document.getElementById('cnblogsmenu').style.display = 'inline';
            }
        }
    </script>    
	<script type="text/javascript">
	var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
	document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
	</script><script src="80305_files/ga.js" type="text/javascript"></script>
	<script type="text/javascript">
	try {
	var pageTracker = _gat._getTracker("UA-476124-5");
	pageTracker._trackPageview();
	} catch(err) {}</script>
</body></html>